Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

nth

interval.nth

(n i64)
 => 
option T
[Redefinition of  Sequence.nth]
the n-th element of this interval, `nil` if out of range

For `step = 0` only index 0 exists: every index would otherwise
yield `from`.

Complexity: O(1), which relies on the O(1) `contains` redefined in
this feature.
Precondition
Inherited from Sequence.nth
pre
  debug: n ≥ 0

redefines:

0.099dev (GIT hash 9b94ad4b4a4bff2bf2be7d77be2c6e1fd7683c4d)
last changed: 2026-09-23